.header-top {
  display: flex;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  margin-left: 2.9vw;
}

.top-link a {
  font-size: 21px;
  font-weight: 900;
}

.top-link a:hover {
  opacity: 0.5;
}

.gradation-btn {
  margin-left: 1.3vw;
}

.gradation-btn a {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.7px;
  font-weight: 700;
  display: inline-block;
  background: linear-gradient(45deg, #2FAFB4, #5083B4);
  padding: 4px 12px;
}

.header-right {
  display: flex;
  align-items: center;
}

.risk-link {
  display: flex;
  align-items: end;
}

.risk-link:hover {
  opacity: 0.5;
}

.risk-link span {
  font-size: 13px;
  letter-spacing: 0.65px;
  font-weight: 500;
  color: #166433;
}

.risk-link img {
  width: 141px;
}

.acount {
  display: flex;
  margin-left: 0.8vw;
}

.my-page a,
.login a {
  width: 110px;
  height: 53px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
}

.my-page a {
  background: #5083B4;
}

.my-page a:hover {
  background: #395E82;
}

.login a {
  background: #2FAFB4;
}

.login a:hover {
  background: #29959A;
}

.header-bottom {
  background: #333333;
}

.menu {
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
}

.menu li:first-child {
  flex-basis: 29.9%;
  text-align: right;
}

.menu li:last-child {
  display: flex;
  align-items: center;
  flex-basis: 17.3%;
}

.menu li p {
  text-align: center;
  font: normal normal bold 17px/34px Noto Sans JP;
  letter-spacing: 0.85px;
  color: #FFFFFF;
  opacity: 1;
  font-size: 17px;
  width: 81.33333vw;
  height: 9.6vw;
  max-height: 50px;
  margin: 0;
}

.header-bottom ul:nth-child(2) {
  display: none;
}

.menu a {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.7px;
}

.menu a:hover {
  color: #B4B4B4;
}

.header-bottom form {
  display: inline-flex;
  position: relative;
}

.header-bottom form input[type="search"] {
  width: 156px;
  height: 21px;
  font-size: 14px;
  padding: 0 0.5rem;
  -moz-appearance: none;
  -webkit-appearance: none;
  -o-appearance: none;
  -ms-appearance: none;
  appearance: none;
  border-radius: 0;
  border: 0;
}

.header-bottom form button {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 21px;
  background: #2FAFB4;
  border: none;
  color: #fff;
  cursor: pointer;
}

.header-bottom form button img {
  display: block;
}

.header-bottom form button:hover {
  background: #29959A;
}

.header-news {
  background: #D40000;
  text-align: center;
  padding: 8px 0;
}

.header-news span {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .top-link a {
    font-size: 18px;
  }
  .gradation-btn a {
    font-size: 13px;
    letter-spacing: 0.65px;
  }
  .risk-link img {
    width: 130px;
  }
  .my-page a,
  .login a {
    width: 90px;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 1.60099vh 0 1.47783vh;
    margin: 0 2.4vw;
  }
  .header-left {
    margin-left: 0;
  }
  .top-link a {
    font-size: 20px;
  }
  .acount {
    align-items: center;
  }
  .my-page a,
  .login a {
    width: auto;
    height: auto;
    background: none;
  }
  .my-page a:hover,
  .login a:hover {
    background: none;
  }
  .login {
    margin-left: 4vw;
  }
  .login img,
  .my-page img {
    vertical-align: top;
  }
  .login img {
    width: 34px;
  }
  .my-page img {
    width: 42px;
  }
  .header-bottom {
    padding: 0 2.4vw;
  }
  .menu {
    align-items: center;
    padding: 1.84729vh 0;
  }
  .menu img {
    width: 34px;
    vertical-align: top;
    cursor: pointer;
  }
  .menu li:first-child,
  .menu li:last-child {
    flex-basis: initial;
  }
  .menu li:first-child {
    text-align: left;
  }
  .header-bottom form input[type="search"] {
    width: 81.33333vw;
    height: 9.6vw;
    max-height: 50px;
    font-size: 16px;
  }
  .header-bottom form button {
    width: 9.6vw;
    height: 9.6vw;
    max-width: 50px;
    max-height: 50px;
    top: 0.1px;
  }
  .header-bottom form button img {
    width: 2.58621vh;
    min-width: 21px;
    margin: auto;
  }
  .header-news {
    padding: 8px 20px;
  }
}
